package com.icecloud.cloud.filestore.conf.mybatis;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@AutoConfigureAfter(MybatisDataSource.class)
public class MyBatisMapperScannerConfig {

	@Bean
	public static MapperScannerConfigurer mapperScannerConfigurer(){
		MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
		mapperScannerConfigurer.setBasePackage("com.icecloud.cloud.filestore");
		mapperScannerConfigurer.setSqlSessionFactoryBeanName("SqlSessionFactory");
		//mapperScannerConfigurer.setAnnotationClass(MyBatisDao.class);
		return mapperScannerConfigurer;
		
	}
}
